package com.zhz.thymeleafmp.service.impl;

import com.zhz.thymeleafmp.entity.Dept;
import com.zhz.thymeleafmp.mapper.DeptMapper;
import com.zhz.thymeleafmp.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Resource
    private DeptMapper deptMapper;

    @Override
    public List<Dept> getDepts() {
        return deptMapper.selectList(null);
    }
}
